package com.kaifamiao.demo.d0802.pm;

public class Demo {

    public static void main(String[] args) {
        int num = 11;

        String str = 11 + "";

        System.out.println(Integer.MAX_VALUE);
        System.out.println(Integer.MIN_VALUE);

        // 进制转换
        System.out.println(Integer.toString(12, 2));
        System.out.println(Integer.toString(173, 8));
        System.out.println(Integer.toString(12, 10));
        System.out.println(Integer.toString(255, 16));


        System.out.println(Integer.toString(22));

//        int a = 0255;
//        a = 0xff01;
//        a = 0b1100;
//        System.out.println(a);

        System.out.println(Integer.parseInt("ff", 16));
        System.out.println(Integer.parseInt("255", 8));


        System.out.println(Integer.compare(10, 11));

        // 0000 0000 0000 0000 0000 0000 0000 1100
        // 0011 0000 0000 0000 0000 0000 0000 0000
        System.out.println(Integer.reverse(12));
        // 0011 0000 0000 0000 0000 0000 0000 0000
        System.out.println(Integer.toString(805306368, 2));

//        double d = Integer.parseInt("ff01");
//
//        System.out.println(d);

        System.out.println(Integer.decode("0xff"));

        // int --> Integer  装箱
        Integer a = Integer.valueOf(10);

        // Integer --> int 拆箱
        int b = a.intValue();


    }
}
